<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ClientReponseGenerator
 *
 * @author fcanache
 */
class ClientReponseGenerator {

    public static function simpleJsonResponse ($success, $exception, $message) {
        return "{\"success\":\"".$success."\", \"exception\":\"".$exception."\", \"message\":\"".$message."\"}";
    }

    public static function jsonResponse ($success, $items, $exception, $message) {
        return "{\"success\":\"".$success."\", \"items\":[".$items."], \"exception\":\"".$exception."\", \"message\":\"".$message."\"}";
    }

}
?>
